\hypertarget{classf__c_u_v_generate}{\section{f\-\_\-c\-U\-V\-Generate类 参考}
\label{classf__c_u_v_generate}\index{f\-\_\-c\-U\-V\-Generate@{f\-\_\-c\-U\-V\-Generate}}
}


用来生成为球或圆柱网格的\-U\-V。 由于，填充顶点缓冲的时候需要一个类型，因此只能显示写出，通过函数名区别，以应对 以后的扩展。  




{\ttfamily \#include $<$uv\-\_\-generate.\-h$>$}

\subsection*{静态 Public 成员函数}
\begin{DoxyCompactItemize}
\item 
static void \hyperlink{classf__c_u_v_generate_a5ceb1175b52bb2aba72c411fee30e857}{sphere\-\_\-\-Light\-Tex} (I\-Direct3\-D\-Device9 $\ast$p\-Device, I\-D3\-D\-X\-Mesh $\ast$\&p\-Sphere, D3\-D\-V\-E\-R\-T\-E\-X\-E\-L\-E\-M\-E\-N\-T9 $\ast$p\-Want\-Vertex\-E\-Le)
\begin{DoxyCompactList}\small\item\em 将球网格顶点格式升级为\-:D3\-D\-F\-V\-F\-\_\-\-X\-Y\-Z $|$ D3\-D\-F\-V\-F\-\_\-\-N\-O\-R\-M\-A\-L $|$ D3\-D\-F\-V\-F\-\_\-\-T\-E\-X1 \end{DoxyCompactList}\item 
static void \hyperlink{classf__c_u_v_generate_aa32a730d80268861fe4851aad208a3b8}{Cylinder\-\_\-\-Light\-Tex} (I\-Direct3\-D\-Device9 $\ast$p\-Device, I\-D3\-D\-X\-Mesh $\ast$\&p\-Cylinder, D3\-D\-V\-E\-R\-T\-E\-X\-E\-L\-E\-M\-E\-N\-T9 $\ast$p, int axis=2)
\begin{DoxyCompactList}\small\item\em 将圆柱体网格顶点格式升级为\-:D3\-D\-F\-V\-F\-\_\-\-X\-Y\-Z $|$ D3\-D\-F\-V\-F\-\_\-\-N\-O\-R\-M\-A\-L $|$ D3\-D\-F\-V\-F\-\_\-\-T\-E\-X1 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
用来生成为球或圆柱网格的\-U\-V。 由于，填充顶点缓冲的时候需要一个类型，因此只能显示写出，通过函数名区别，以应对 以后的扩展。 

\subsection{成员函数说明}
\hypertarget{classf__c_u_v_generate_aa32a730d80268861fe4851aad208a3b8}{\index{f\-\_\-c\-U\-V\-Generate@{f\-\_\-c\-U\-V\-Generate}!Cylinder\-\_\-\-Light\-Tex@{Cylinder\-\_\-\-Light\-Tex}}
\index{Cylinder\-\_\-\-Light\-Tex@{Cylinder\-\_\-\-Light\-Tex}!f_cUVGenerate@{f\-\_\-c\-U\-V\-Generate}}
\subsubsection[{Cylinder\-\_\-\-Light\-Tex}]{\setlength{\rightskip}{0pt plus 5cm}static void f\-\_\-c\-U\-V\-Generate\-::\-Cylinder\-\_\-\-Light\-Tex (
\begin{DoxyParamCaption}
\item[{I\-Direct3\-D\-Device9 $\ast$}]{p\-Device, }
\item[{I\-D3\-D\-X\-Mesh $\ast$\&}]{p\-Cylinder, }
\item[{D3\-D\-V\-E\-R\-T\-E\-X\-E\-L\-E\-M\-E\-N\-T9 $\ast$}]{p, }
\item[{int}]{axis = {\ttfamily 2}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classf__c_u_v_generate_aa32a730d80268861fe4851aad208a3b8}


将圆柱体网格顶点格式升级为\-:D3\-D\-F\-V\-F\-\_\-\-X\-Y\-Z $|$ D3\-D\-F\-V\-F\-\_\-\-N\-O\-R\-M\-A\-L $|$ D3\-D\-F\-V\-F\-\_\-\-T\-E\-X1 


\begin{DoxyParams}{参数}
{\em axis} & =2;表示\-Z轴，圆柱体是沿着\-Z轴为长度的。 \\
\hline
\end{DoxyParams}
\hypertarget{classf__c_u_v_generate_a5ceb1175b52bb2aba72c411fee30e857}{\index{f\-\_\-c\-U\-V\-Generate@{f\-\_\-c\-U\-V\-Generate}!sphere\-\_\-\-Light\-Tex@{sphere\-\_\-\-Light\-Tex}}
\index{sphere\-\_\-\-Light\-Tex@{sphere\-\_\-\-Light\-Tex}!f_cUVGenerate@{f\-\_\-c\-U\-V\-Generate}}
\subsubsection[{sphere\-\_\-\-Light\-Tex}]{\setlength{\rightskip}{0pt plus 5cm}static void f\-\_\-c\-U\-V\-Generate\-::sphere\-\_\-\-Light\-Tex (
\begin{DoxyParamCaption}
\item[{I\-Direct3\-D\-Device9 $\ast$}]{p\-Device, }
\item[{I\-D3\-D\-X\-Mesh $\ast$\&}]{p\-Sphere, }
\item[{D3\-D\-V\-E\-R\-T\-E\-X\-E\-L\-E\-M\-E\-N\-T9 $\ast$}]{p\-Want\-Vertex\-E\-Le}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classf__c_u_v_generate_a5ceb1175b52bb2aba72c411fee30e857}


将球网格顶点格式升级为\-:D3\-D\-F\-V\-F\-\_\-\-X\-Y\-Z $|$ D3\-D\-F\-V\-F\-\_\-\-N\-O\-R\-M\-A\-L $|$ D3\-D\-F\-V\-F\-\_\-\-T\-E\-X1 


\begin{DoxyParams}{参数}
{\em p\-Want\-Vertex\-Ele要变换成，的顶点格式。} & \\
\hline
\end{DoxyParams}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
E\-:/!代码工厂/3\-D引擎/uv\-\_\-generate.\-h\end{DoxyCompactItemize}
